package com.tea.room.service.wechat;

import javax.servlet.http.HttpServletRequest;

import com.tea.room.model.Return;
import com.tea.room.model.UserInfo;
import com.tea.room.model.WeChatToken;
import com.tea.room.model.tea.TeaOrder;

public interface WeChatService {
    
    /**
     * token认证接口
     * @Title: verifyToken   
     * @param: @param request
     * @return: Boolean      
     * @throws
     */
    Boolean verifyToken(HttpServletRequest request);
    
    /**
     * 消息回复
     * @Title: messageHandle   
     * @param: @param req
     * @return: String      
     * @throws
     */
    String messageHandle(HttpServletRequest req);
    
    /**
     * access_token入库
     * @Title: insertAccessToken   
     * @Description: TODO()   
     * @param: @param wc
     * @param: @return      
     * @return: Boolean      
     * @throws
     */
    void insertAccessToken(WeChatToken wc);
    
    /**
     * 服务到期消息提醒
     * @param o
     * @return
     */
    String messageNotice(TeaOrder o);
    
    /**
     * 服务开始消息提醒
     * @param o
     * @return
     */
    String startNotice(TeaOrder o);
    
    /**
     * 增加用户
     * @param openid
     * @return
     */
    Return addUserInfo(String openid);
    
    /**
     * 查询用户
     * @param openid
     * @return
     */
    UserInfo queryUserInfo(String openid);
    
    /**
     * 查询openid
     * @param openid
     * @return
     */
    Return queryOpenid(String openid);
}
